package com.heima.media.controller;

import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.heima.common.dto.ResponseResult;
import com.heima.media.dto.LoginDto;
import com.heima.media.entity.WmSensitive;
import com.heima.media.service.IWmUserService;
import com.heima.media.service.WmChannelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

@RestController
@RequestMapping("/login")
@Api(value = "客户端登录界面")
public class LoginController {
    @Autowired
    IWmUserService wmUserService;
    @PostMapping("/in")
    @ApiOperation(value = "登录界面",notes = "author:ztz")
    @ApiImplicitParam(dataType = "LoginDto",value = "登录接收对象",name = "dto")
    public ResponseResult login(@RequestBody LoginDto dto){
        return wmUserService.login(dto);
    }


}
